import requests
from bs4 import BeautifulSoup
from lxml import etree


"""
  # C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts\chromedriver.exe
"""
  
r = requests.get('http://www.shanghairanking.cn/rankings/bcsr/2020/0101')
r.encoding = 'utf-8'
# sourData = BeautifulSoup(r.text, 'html.parser')
# t =  etree.HTML(r.text).xpath('//*[@id="content"]/div[2]/div/div[1]/text()[1]')
t =  etree.HTML(r.text).xpath('//*[@id="content-box"]/div[2]/table/tbody/tr[1]/td[4]/div/div[2]/div[1]/div/div/a/text()')
print(t)


